<%  @transaction = Transaction.new %>
<%= form_for @transaction,:remote => true do |f| %>
    <%= f.label "Amount:" %>
    <%= f.text_field :amount %>
    <%= f.hidden_field :giver_id %>
    <%= f.hidden_field :giver_type %>
    <%= f.hidden_field :receiver_id %>
    <%= f.hidden_field :receiver_type %>
    <%= f.label "Date:", :read_only => true %>
    <%= f.text_field :on_date %>
<button id="submit_transaction">Pay</button>
<% end %>
